package com.magupe.im.web.client.module.netty.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping(value = "/netty")
public class NettyController {

    @GetMapping("/websocket1")
    public ModelAndView websocket1(ModelAndView mv){
        mv.setViewName("/netty/websocket1");
        return mv;
    }

    @GetMapping("/websocket2")
    public ModelAndView websocket2(ModelAndView mv){
        mv.setViewName("/netty/websocket2");
        return mv;
    }
}
